import request from '@/utils/request'

// 查询决策方案列表
export function listAppScheme(query) {
  return request({
    url: '/system/appScheme/list',
    method: 'get',
    params: query
  })
}

// 查询决策方案详细
export function getAppScheme(id) {
  return request({
    url: '/system/appScheme/' + id,
    method: 'get'
  })
}

// 新增决策方案
export function addAppScheme(data) {
  return request({
    url: '/system/appScheme',
    method: 'post',
    data: data
  })
}

// 修改决策方案
export function updateAppScheme(data) {
  return request({
    url: '/system/appScheme',
    method: 'put',
    data: data
  })
}

// 删除决策方案
export function delAppScheme(id) {
  return request({
    url: '/system/appScheme/' + id,
    method: 'delete'
  })
}
